package com.yonyou.brigade.third_parties.yihao.service;


import com.alibaba.fastjson.JSONObject;
import com.yonyou.brigade.order_center.model.ThirdResult;
import com.yonyou.brigade.third_parties.yihao.model.YihaoDept;
import com.yonyou.brigade.third_parties.yihao.model.YihaoUser;

import java.util.List;
import com.yonyou.brigade.basic_init.model.BriChannel;
import com.yonyou.ybzboot.uc.dto.UcUserDto;

/**
 * Created by Administrator on 2018/10/15.
 */
public interface ICLYHPublicService{
    public String ssoLogin(String pcode,JSONObject jsonObject,String pcOrH5);

    /**
     * 同步差旅一号用户
     * @param userList
     * @param tenant
     * @param briChannel
     * @param sysType 同步类型 add：新增 edit：修改
     */
    public ThirdResult sysUserToClyh(UcUserDto ucUserDto, List<YihaoUser> userList, String tenant, BriChannel briChannel, String sysType);

    /**
     * 同步部门信息
     * @param deptList
     * @param tenant
     * @param config
     * @return
     */
    public ThirdResult sysDeptToClyh(List<YihaoDept> deptList, String tenant, JSONObject config, String sysType);


    /**
     * 根据组织PK 同步该组织下的部门
     * @param tenant
     * @param org
     * @return
     */
    public ThirdResult sysDeptToClyhByOrg(String tenant, String org);

    JSONObject pushApplayOrder(BriChannel channel, String tenant, String orgpk, JSONObject applyOrderJson, boolean isOpenApi);
}